<?php
namespace App\Models\Observer;

use App\Models\PlatUserApp;

class PlatUserAppObserver
{
    /**
     * 监听用户创建事件
     *
     * @param \App\Models\PlatUserApp $userApp
     */
    public function created(PlatUserApp $userApp)
    {
        $userApp->app_id = generateAppCode($userApp->classify);
        $userApp->save();
    }
}
